/**
 * 
 */
package com.neusoft.cmsprojects.dao;

import java.util.List;






import javax.annotation.Resource;

import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;

import com.neusoft.cmsprojects.model.TbConfig;
import com.neusoft.cmsprojects.util.DaoUtilImpl;

/**
 * index:基本设置相关的数据库操作层接口实现
 * @author guanhaimin
 * date:2014年12月16日下午3:20:22
 */
@Repository("BasicSettingsDao")
public class BasicSettingsDaoImpl extends DaoUtilImpl implements BasicSettingsDao {
	@Override
	public TbConfig getBasicSettings() {
		// TODO Auto-generated method stub
		String hql = "from TbConfig t";
		List<Object> objs = this.queryByHql(hql);
		if(objs.size() == 0){
			return null;
		}else{
			return (TbConfig) objs.get(0);
		}
	}

}
